package com.sykj.springboot.test.designMode.singletonPattern;

public class main {

    public static void main(String[] args) {

        Emperor instance = Emperor.getInstance();
        System.out.println(instance);
        System.out.println(instance.hashCode());

        Emperor instance2 = Emperor.getInstance();
        System.out.println(instance2);
        System.out.println(instance2.hashCode());

    }

}
